/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package megachess.svn;

/**
 *
 * @author johannes
 */
public class Figure {
    
    char color;
    char name;

    public char getColor() {
        return color;
    }

    public char getName() {
        return name;
    }
    
    
    public Figure(char name){
        
        this.name = name;
        
        
        if(name >= 'a' && name <= 'z')
            color = 'B';
        else if(name >= 'A' && name <= 'Z')
            color = 'W';
        else 
           color='-';
    }
    
    public boolean isFigure(){
        
       if(name != '-')
           return true;
       else
           return false;
    }
    
}
